<?php

class Mediad2_Model_Result extends Mediad2_Model_Abstract
{
	/**
	 * const
	 */
	const CODE_SUCCESS			= 1;	//成功
	const CODE_FAILURE			= 0;	//失败	
	
	const MESSAGE_SUCCESS		= 'success';
	const MESSAGE_FAILURE		= 'failure';
	
	/**
	 * var
	 */
	protected $code 		= null;			//代码
	protected $message 		= null;			//消息
	protected $data			= null;			//数据

	/**
     * @return the $code
     */
    public function getCode ()
    {
        return $this->code;
    }

	/**
     * @return the $message
     */
    public function getMessage ()
    {
        return $this->message;
    }

	/**
     * @return the $data
     */
    public function getData ()
    {
        return $this->data;
    }

	/**
     * @param NULL $code
     */
    public function setCode ($code)
    {
        $this->code = $code;
    }

	/**
     * @param NULL $message
     */
    public function setMessage ($message)
    {
        $this->message = $message;
    }

	/**
     * @param NULL $data
     */
    public function setData ($data)
    {
        $this->data = $data;
    }
	
}